package com.example.dao;


import com.example.domain.Prescription;
import com.example.domain.Prescription2;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PrescriptionMapper2 {

    List<Prescription2> listAll(int patient_id);


    int insert(Prescription2 prescription);

    int update(Prescription2 prescription);

    Prescription2 getById(int id);

}
